package cook.models;

import javax.persistence.Column;

import com.fasterxml.jackson.annotation.JsonIgnore;


public class Recipe {
    private int id;
    private String name;
    private String url;
    private String imageUrl;
    private String ingredients;
    private String text;
    private int cookingTime;

    @JsonIgnore
    public int getId() {
        return id;
    }

    public void setId(final int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    @Column(name="name")
    public void setName(final String name) {
        this.name = name;
    }

    public String getUrl() {
        return url;
    }

    @Column(name="url")
    public void setUrl(final String url) {
        this.url = url;
    }

    public String getImageUrl() {
        return imageUrl;
    }

    @Column(name = "imageurl")
    public void setImageUrl(final String imageUrl) {
        this.imageUrl = imageUrl;
    }

    public String getIngredients() {
        return ingredients;
    }

    @Column(name="ingredients")
    public void setIngredients(final String ingredients) {
        this.ingredients = ingredients;
    }

    public String getText() {
        return text;
    }

    @Column(name="text")
    public void setText(final String text) {
        this.text = text;
    }

    public int getCookingTime() {
        return cookingTime;
    }

    @Column(name="time")
    public void setCookingTime(final int time) {
        this.cookingTime = time;
    }
}